﻿using System.Collections.Generic;
using Newtonsoft.Json;

namespace JH
{
    /// <summary>
    /// 有道词典文本翻译返回实体
    ///  https://ai.youdao.com/DOCSIRMA/html/trans/api/wbfy/index.html#section-9
    /// </summary>
    public class TextTranslationResult
    {
        /// <summary>
        ///  错误返回码，一定存在
        /// </summary>
        [JsonProperty("errorCode")]
        public string ErrorCode { get; set; }
        
        /// <summary>
        /// 翻译结果，查询正确时，一定存在
        /// </summary>
        [JsonProperty("translation")]
        public List<string> Translation { get; set; }
        
    }
}